package com.gigalaxy.apps.starcom.flight.itemRenderers
{
	import spark.components.LabelItemRenderer;


	/**
	 *
	 * ASDoc comments for this item renderer class
	 *
	 */
	public class RetCityItemRenderer extends LabelItemRenderer
	{
		public function RetCityItemRenderer()
		{
			//TODO: implement function
			super();
		}

		/**
		 * @private
		 *
		 * Override this setter to respond to data changes
		 */
		override public function set data(value:Object):void
		{
			super.data=value;
			data.value=data.id;

			label=data.name + " | " + data.value;
		}

		/**
		 * @private
		 *
		 * Override this method to create children for your item renderer
		 */
		override protected function createChildren():void
		{
			super.createChildren();
			// create any additional children for your item renderer here
		}

		/**
		 * @private
		 *
		 * Override this method to change how the item renderer
		 * sizes itself. For performance reasons, do not call
		 * super.measure() unless you need to.
		 */
		override protected function measure():void
		{
			super.measure();
			// measure all the subcomponents here and set measuredWidth, measuredHeight, 
			// measuredMinWidth, and measuredMinHeight      		
		}

		/**
		 * @private
		 *
		 * Override this method to change how the background is drawn for
		 * item renderer.  For performance reasons, do not call
		 * super.drawBackground() if you do not need to.
		 */
		override protected function drawBackground(unscaledWidth:Number, unscaledHeight:Number):void
		{
			super.drawBackground(unscaledWidth, unscaledHeight);
			// do any drawing for the background of the item renderer here      		
		}

		/**
		 * @private
		 *
		 * Override this method to change how the background is drawn for this
		 * item renderer. For performance reasons, do not call
		 * super.layoutContents() if you do not need to.
		 */
		override protected function layoutContents(unscaledWidth:Number, unscaledHeight:Number):void
		{
			super.layoutContents(unscaledWidth, unscaledHeight);
			// layout all the subcomponents here      		
		}

	}
}
